package mesweb.mesweb.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mesweb.mesweb.entity.device.MesDevice;
import mesweb.mesweb.vo.MesDeviceVo;
import mesweb.mesweb.vo.device.ProcedureDeviceParameterVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */

@Mapper
public interface MesDeviceMapper extends BaseMapper<MesDevice> {

    IPage<MesDeviceVo> getDevices(Page page, @Param("ew") QueryWrapper queryWrapper);

    IPage<ProcedureDeviceParameterVo> getProcedureDeviceCapility(Page page, @Param("ew") QueryWrapper queryWrapper);
    List<ProcedureDeviceParameterVo> getProcedureDeviceCapility(@Param("ew") QueryWrapper queryWrapper);
}
